package cate.game.role.mail.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBMail;
import cate.game.role.Role;
import cate.game.role.mail.RoleMail;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "我的邮件数据(包含所有邮件) の 返回")
public class MailMyResp implements MsgOutput {

    @NoteField(value = "我的邮件数据", detail = "包含所有邮件de列表，以及其他的一些配置数据")
    public RoleMail data;

    public MailMyResp(){}

    public MailMyResp(Role role) {
        this.data = role.getMail();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBMail.MY_MAIL_RESP;
    }
}
